import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue' // 我们稍后会创建这个视图
import MiniModeView from '../views/MiniModeView.vue'; // 新增导入
import CollectionBoxView from '../views/CollectionBoxView.vue'; // 正确的导入
import CalendarView from '../views/CalendarView.vue'; // 新增导入
import SettingsView from '../views/SettingsView.vue'; // 取消注释并确认路径
import ArchivedView from '../views/ArchivedView.vue'; // 新增导入
import PomodoroView from '../views/PomodoroView.vue'; // 新增导入
import ReminderView from '../views/ReminderView.vue' // 导入提醒视图
// import SettingsView from '../views/SettingsView.vue'; // 占位，后续创建

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: HomeView
  },
  {
    path: '/mini', // 新增迷你模式路由
    name: 'MiniMode',
    component: MiniModeView
  },
  {
    path: '/collection-box', // 正确的路径
    name: 'CollectionBox',    // 正确的名称
    component: CollectionBoxView // 正确的组件
  },
  {
    path: '/calendar',
    name: 'Calendar',
    component: CalendarView
  },
  {
    path: '/archive', // 新增路由
    name: 'Archive',
    component: ArchivedView
  },
  {
    path: '/settings',
    name: 'Settings',
    component: SettingsView
  },
  {
    path: '/pomodoro',
    name: 'Pomodoro',
    component: PomodoroView
  },
  {
    path: '/reminder',
    name: 'Reminder',
    component: ReminderView
  },
  // {
  //   path: '/settings',
  //   name: 'Settings',
  //   component: SettingsView
  // }
  // 未来可以添加更多路由
]

const router = new VueRouter({
  mode: process.env.IS_ELECTRON ? 'hash' : 'history', // Electron 中推荐使用 hash 模式
  base: process.env.BASE_URL,
  routes
})

export default router 